﻿@page "/Find/GLis"
@inherits YiMeiJiaService.Assembly.BaseComponent
@using YiMeiJiaLibModel.Config
@using YiMeiJiaLibModel.Business
@using YiMeiJiaApp.Pages.Components

@using Microsoft.Maui.Controls





<div class="page__bd" style="margin-top:50px;">
    <div class="weui-panel weui-panel_access">
        <div class="weui-panel__hd">游戏列表</div>
        <div class="weui-panel__bd">
            <a href="javascript:void(0);" class="weui-media-box weui-media-box_appmsg" @onclick="()=>JiLi()">
                <div class="weui-media-box__hd">
                    <img class="weui-media-box__thumb" src="" alt="">
                </div>
                <div class="weui-media-box__bd">
                    <h4 class="weui-media-box__title">直接看广告</h4>
                    <p class="weui-media-box__desc">快速领取收益的通道。</p>
                </div>
            </a>
            @if (_games != null && _games.Any())
            {
                foreach (var item in _games)
                {
                    <a href="javascript:void(0);" class="weui-media-box weui-media-box_appmsg open-popup" data-target="#half" @onclick="(()=>ClickGame(item.game_id))">
                        <div class="weui-media-box__hd">
                            <img class="weui-media-box__thumb" src="" alt="">
                        </div>
                        <div class="weui-media-box__bd">
                            <h4 class="weui-media-box__title">@item.name</h4>
                            <p class="weui-media-box__desc">@item.desc</p>
                        </div>
                    </a>
                }
            }

        </div>
        <div class="weui-panel__ft">
            <a href="javascript:void(0);" class="weui-cell weui-cell_access weui-cell_link">
                <div class="weui-cell__bd">查看更多</div>
                <span class="weui-cell__ft"></span>
            </a>
        </div>
    </div>




    <div class="container-webView" id="container-game">
        <div id="half" class="weui-popup__container popup-bottom">
            <div class="weui-popup__overlay"></div>
            <div class="weui-popup__modal">
                <div class="toolbar">
                    <div class="toolbar-inner">
                        <a href="javascript:;" class="picker-button close-popup">关闭</a>
                        <h1 class="title" id="GameTitle">标题</h1>
                    </div>
                </div>
                <div class="modal-content">
                    <iframe class="webView-iframe" id="gameViews" src=""></iframe>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    $("#shop-tabbar").slideToggle(2000);
</script>
